package yuntikutest;

import java.util.Scanner;

public class Sort {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("请输入第一个数");
		int a = input.nextInt();
		int d = a;
		System.out.println("请输入第二个数");
		int b = input.nextInt();
		int e = b;
		System.out.println("请输入第三个数");
		int c = input.nextInt();
		int f = c;
		int max,min = a;
		if (a > b){
			max = a;
			min = b;
		}else {
			max = b;
			min = a;
		}
		
		if (max > c){
			max = max;
			min = c;
		} else {
			max = c;
			min = min;
		}
		
		c = max;
		a = min;
		if(d != max && d != min){
			b = d;
		}
		if(e != max && e != min){
			b = e;
		}
		if(f != max && f != min){
			b = f;
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		

	}

}
